home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / smailsrc.zip / PASSWD.ZIP / ENDPWENT.C next >
Text File  |  1990-04-03  |  346b  |  27 lines

  1. /*
  2.  *      endpwent.c: Close password file
  3.  *
  4.  *      Stephen C. Trier
  5.  *      March 26, 1990
  6.  *
  7.  *      This program is in the public domain
  8.  *
  9.  */
  10.  
  11. #include <stdio.h>
  12. #include <pwd.h>
  13.  
  14. extern FILE *_pw_file;
  15.  
  16. int endpwent(void)
  17. {
  18.     int temp;
  19.  
  20.     temp = fclose(_pw_file);
  21.     _pw_file = NULL;
  22.  
  23.     return temp;
  24. }
  25.  
  26.  
  27.